package com.woniu.exception.account;

public enum AccountExceptionCode {
    ACCOUNT_NOT_REGISTER(10001,"用户尚未注册"),
    ACCOUNT_NOT_USERNAME(10002,"用户名错误"),
    ACCOUNT_PASSWORD_ERROR(10002,"密码错误"),
    ACCOUNT_ALREADY_EXISTS(10004,"用户已存在"),
    ACCOUNT_NOT_LOGIN(401,"用户尚未登录"),
    ACCOUNT_NOT_ID(10004,"用户未成年"),
    ACCOUNT_NOT_QIYONG(10004,"用户已启用"),
    ACCOUNT_NOT_JINYONG(10004,"用户已禁用"),
    ACCOUNT_NOT_ENROLL(1000,"该用户已被注册"),
    ACCOUNT_NOT_REPEAT(1007,"与原密码不一致"),
    EMPLOYEE_NO_USER(10003,"员工不存在"),
    ACCOUNT_NOT_ADMIN(1009,"管理员状态异常，禁止登录"),
    ACCOUNT_NO_ACCOUNT(10001,"账号不存在"),
    ACCOUNT_NO_ACCOUNT_ID(10003,"未实名验证"),
    ACCOUNT_NO_ACCOUNT_NO_ADDRESS(10003,"用户预约地址异常"),
    ;
    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }


    AccountExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
